IOMMU/x86: drop pointless NULL checks
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 08:58:03 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 08:58:03 +0000 (10:58 +0200)
commit893335807d5b11d0899e7b7bb3cb45c5af289767
treea247c7df893ff9f1762960c27066bb8e6834e177
parent8f009f13e9c71159fd718fb438bad63b48d7695c
IOMMU/x86: drop pointless NULL checks

map_domain_page() et al never fail; no need to check their return values
against NULL, and no need to carry dead printk()s.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/utils.c